package com.myway.utils.http;

/**
 * Created by whuang on 2018/9/26.
 */
public class HttpsTest {

    public static void main(String[] args){
        TBCToPay("001");
    }


    public static void TBCToPay(String orderid) {
        /*String httpsUrl = "https://ecommerce.ufc.ge:18443/ecomm2/MerchantHandler";

      *//*  TBCParams tbcParams=new TBCParams();
        tbcParams.setCommand("v");
        tbcParams.setAmount("500");
        tbcParams.setCurrency("981");
        tbcParams.setClient_ip_addr(httpsUrl);
        tbcParams.setLanguage("EN");
        tbcParams.setDescription("UFCTEST");
        tbcParams.setMsg_type("SMS");*//*

        HttpUtils httpUtils = new HttpUtils.Builder().uri(httpsUrl)
                 .param("command","v").param("amount","10").param("currency","981").param("language","EN")
                 .param("client_ip_addr","47.75.92.162")
                 .param("description","UFCTEST").param("msg_type","SMS")
                 .ssl(true).build();

        String str = httpUtils.postSync();
        System.out.println(str);*/

        /*try{
            String httpsUrl = "https://ecommerce.ufc.ge:18443/ecomm2/MerchantHandler";
            String params = "command=v&amount=500&currency=981&client_ip_addr=47.75.92.162&language=EN&description=UFCTEST&msg_type=SMS";
            String str = HttpUtils.sendRedEnvelope(httpsUrl,params);
            System.out.println(str);
        }catch (Exception e){
            e.printStackTrace();
        }*/

    }

}
